-- --------------------------------------------------------

--
-- Table structure for table `beauty_candidates`
--

CREATE TABLE IF NOT EXISTS `beauty_candidates` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `user_id1` int(10) unsigned NOT NULL default '0',
  `user_id2` int(10) unsigned default NULL,
  `category_id` tinyint(3) unsigned NOT NULL default '0',
  `description` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `reg_date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `beauty_candidates`
--

-- --------------------------------------------------------

--
-- Table structure for table `beauty_category`
--

CREATE TABLE IF NOT EXISTS `beauty_category` (
  `id` tinyint(3) unsigned NOT NULL auto_increment,
  `name` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `beauty_category`
--

INSERT INTO `beauty_category` (`id`, `name`) VALUES
(1, 'Miss'),
(2, 'Mister'),
(3, 'Married');

-- --------------------------------------------------------

--
-- Table structure for table `beauty_gallery`
--

CREATE TABLE IF NOT EXISTS `beauty_gallery` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `candidate_id` mediumint(8) unsigned NOT NULL default '0',
  `itemurl` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `thumb` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `comment` varchar(100) collate utf8_unicode_ci NOT NULL default '',
  `priority` enum('0','1') collate utf8_unicode_ci default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `beauty_gallery`
--


-- --------------------------------------------------------

--
-- Table structure for table `beauty_prizes`
--

CREATE TABLE IF NOT EXISTS `beauty_prizes` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `category_id` tinyint(3) unsigned NOT NULL default '0',
  `plusses` mediumint(9) NOT NULL default '0',
  `money` mediumint(9) NOT NULL default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=17 ;

--
-- Dumping data for table `beauty_prizes`
--

INSERT INTO `beauty_prizes` (`id`, `category_id`, `plusses`, `money`) VALUES
(1, 1, 100000, 3),
(2, 2, 100000, 3),
(3, 3, 200000, 3),
(4, 1, 75000, 2),
(5, 1, 50000, 1),
(7, 1, 25000, 0),
(8, 1, 25000, 0),
(9, 2, 75000, 2),
(10, 2, 50000, 1),
(11, 2, 25000, 0),
(12, 2, 25000, 0),
(13, 3, 150000, 2),
(14, 3, 100000, 1),
(15, 3, 50000, 0),
(16, 3, 50000, 0);

-- --------------------------------------------------------

--
-- Table structure for table `beauty_settings`
--

CREATE TABLE IF NOT EXISTS `beauty_settings` (
  `id` smallint(5) unsigned NOT NULL auto_increment,
  `name` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  `value` varchar(100) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=14 ;

--
-- Dumping data for table `beauty_settings`
--

INSERT INTO `beauty_settings` (`id`, `name`, `value`) VALUES
(1, 'regon', 'y'),
(2, 'regstart', '1'),
(3, 'regend', '30'),
(4, 'regplusses', '250'),
(5, 'voton', 'y'),
(6, 'votstart', '11'),
(7, 'votplusses', '100'),
(8, 'endon', 'y'),
(9, 'end', '30'),
(10, 'ended', ''),
(11, 'starton', 'n'),
(12, 'start', '2'),
(13, 'started', '1241197630');

-- --------------------------------------------------------

--
-- Table structure for table `beauty_votes`
--

CREATE TABLE IF NOT EXISTS `beauty_votes` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `category_id` tinyint(3) unsigned NOT NULL default '0',
  `candidate_id` mediumint(8) unsigned NOT NULL default '0',
  `voter` int(10) unsigned NOT NULL default '0',
  `date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=1 ;

--
-- Dumping data for table `beauty_votes`
--


-- --------------------------------------------------------

--
-- Table structure for table `beauty_winners`
--

CREATE TABLE IF NOT EXISTS `beauty_winners` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `user_id1` int(10) unsigned NOT NULL default '0',
  `user_id2` int(10) unsigned default NULL,
  `category_id` tinyint(3) unsigned NOT NULL default '0',
  `description` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `votes` mediumint(9) NOT NULL default '0',
  `place` tinyint(3) unsigned NOT NULL default '0',
  `plusses` mediumint(9) NOT NULL default '0',
  `money` mediumint(9) NOT NULL default '0',
  `start_date` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  `end_date` varchar(20) collate utf8_unicode_ci NOT NULL default '',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `beauty_winners`
--


-- --------------------------------------------------------

--
-- Table structure for table `beauty_winners_gallery`
--

CREATE TABLE IF NOT EXISTS `beauty_winners_gallery` (
  `id` mediumint(8) unsigned NOT NULL auto_increment,
  `winner_id` mediumint(8) unsigned NOT NULL default '0',
  `itemurl` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `thumb` varchar(255) collate utf8_unicode_ci NOT NULL default '',
  `comment` varchar(100) collate utf8_unicode_ci NOT NULL default '',
  `priority` enum('0','1') collate utf8_unicode_ci default '0',
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci AUTO_INCREMENT=4 ;

--
-- Dumping data for table `beauty_winners_gallery`
--

